#ifndef USERRESETPW_H
#define USERRESETPW_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QGraphicsBlurEffect>
#include "blldataflow.h"
#include "sqlhelper.h"
#include "msgbox.h"

namespace Ui {
class UserResetPW;
}

class UserResetPW : public QWidget
{
    Q_OBJECT

public:
    explicit UserResetPW(QWidget *parent = nullptr);
    ~UserResetPW();

private slots:
    void on_btnOK_clicked();
    void setUser(User user);

    void on_btnClose_clicked();
    void retranslateUiSlot();

    void on_btnCancle_clicked();

private:
    void initWidget();
    bool resetUser();

protected:
    void paintEvent(QPaintEvent *event);

private:
    Ui::UserResetPW *ui;
    BllDataFlow * bdf;
    SqlHelper * sqlHelper;
    User user;
};

#endif // USERRESETPW_H
